<!--
 * @Description: 
 * @Version: 1.0
 * @Autor: Strong
 * @Date: 2021-04-16 11:24:25
 * @LastEditors: Strong
 * @LastEditTime: 2021-04-20 16:33:56
 * @FilePath: \mf\themes\web\zhtw\list_video.html
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="{$common.description}">
  <meta name="keywords" content="{$common.keywords}">
  <meta name="author" content="STRONG">
  <title>{$common.title}</title>
  <!--#include file="resources.html"-->
</head>

<body>
  <!--#include file="head.html"-->

  <div class="page-banner" style="background-image: url({$info.image});">
    <h2 data-aos="fade-right">{$info.subname}</h2>
  </div>


  <div class="index-page">
    <div class="title">
      <hr>
      <h1>互動作品一覽</h1>
    </div>
    
    <div class="list-app">
      <div class="list-video">
        <!--if:{!empty($loop)}--> 
        <ul>
          <!--foreach:{$loop $vo}-->
            <li>
              <div class="img"><img src="images/btn_play2.png" class="btns"><img src="{$vo.image}"></div>
              <h3>{$vo.title}</h3>
              <p>{$vo.description}</p>
              <div class="iframe">
                <div class="iframe-warp">
                  <div class="close">close</div>
                  <div class="iframe-h">
                    <?php echo(html_entity_decode($vo['videourl'])); ?>
                  </div>
                </div>
              </div>
            </li>
           <!--/foreach-->
        </ul>
        <!--{else}--> 
        <div class="nomarls">
          ~暫無數據~
        </div>
        <!--/if--> 
      </div>

    </div>
 
  </div>

  <div class="video-popup">
    
  </div>
  <!--#include file="foot.html"-->
</body>
<!--#include file="js.html"-->
<script>
  $('.list-video li').click(function () {
    var html = $(this).children('.iframe').html()
    $('.video-popup').html(html)
    $('.video-popup').show()

    $('.close').click(function () {
      $('.video-popup').empty()
      $('.video-popup').hide()
    })

  })
  
</script>
</html>